package cn.kgc.util.exception;

import cn.kgc.util.ResultConstant;
import lombok.Getter;

/**
 * @author wangyue
 * @version 1.0
 */
@Getter
public class HttpException extends RuntimeException{

    /**
     * 错误码
     */
    private  final int  code;

    public HttpException(ResultConstant resultConstant){
        super(resultConstant.getMessage());
        this.code=resultConstant.getCode();
    }
}